package com.jl.easybuysys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jl.easybuysys.mapper.EbNewsMapper;
import com.jl.easybuysys.model.EbNews;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EbNewsService {
    @Autowired
    private EbNewsMapper ebNewsMapper;


    public Page<EbNews> list(int psizes, int limits){
        Page<EbNews> page= new Page(psizes,limits);
        return ebNewsMapper.selectPage(page,null);

    }


}
